package com.dashuai.mapper;

import com.dashuai.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;


public interface OrderMapper {

    Order findById(@Param("id") Long orderId);

    Order findBySaveTimeCom(@Param("saveTimeCom") Long saveTimeCom);

    void createTable();

    void insert(Order order);

    void insertBatch(@Param("orders") ArrayList<Order> orders);

    List<Order> findByOrderBytemporalInterval(@Param("startTime") long startTime, @Param("endTime") long endTime);
}
